package team.southcat.wsyygh.common.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import team.southcat.wsyygh.common.result.Result;

@FeignClient("service-common")
@Component
public interface CategoryFeignClient {

    @GetMapping("/admin/common/category/getById/{id}")
    public Result getById(@PathVariable("id") int id);
}
